arm: mvebu: theadorable: Add board-specific PEX detection pulse width
authorStefan Roese <[email protected]>
Fri, 10 Mar 2017 14:40:31 +0000 (15:40 +0100)
committerStefan Roese <[email protected]>
Wed, 29 Mar 2017 05:38:10 +0000 (07:38 +0200)
Define a board-specific detection pulse-width array for the SerDes PCIe
interfaces. If not defined in the board code, the default of currently 2
is used. Values from 0...3 are possible (2 bits).

In this case of the theadorable board, PEX interface 0 needs a value
of 0 for the detection pulse width so that the PCIe device (Atheros
WLAN PCIe device) is consistantly detected.

Signed-off-by: Stefan Roese <[email protected]>
Cc: Adam Shobash <[email protected]>
Cc: Nadav Haklai <[email protected]>
Cc: Konstantin Porotchkin <[email protected]>
Signed-off-by: Stefan Roese <[email protected]>
board/theadorable/theadorable.c

index d621682d07228d94747a1eb468134fbd51cfa22d..d4242170c74b3ed69f9bf4c73bb4d4a4c70d8e9b 100644 (file)
@@ -115,6 +115,13 @@ MV_BIN_SERDES_CFG theadorable_serdes_cfg[] = {
        },
 };
 
+/*
+ * Define a board-specific detection pulse-width array for the SerDes PCIe
+ * interfaces. If not defined in the board code, the default of currently 2
+ * is used. Values from 0...3 are possible (2 bits).
+ */
+u8 serdes_pex_pulse_width[4] = { 0, 2, 2, 2 };
+
 MV_DRAM_MODES *ddr3_get_static_ddr_mode(void)
 {
        /* Only one mode supported for this board */